package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 批改明细表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_endorsement_detail")
@ApiModel(value = "CgnciEndorsementDetailDO对象", description = "批改明细表")
public class CgnciEndorsementDetailDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("批改明细ID")
    @TableId(value = "detail_id", type = IdType.ASSIGN_ID)
    private Long detailId;

    @ApiModelProperty("再保人ID")
    private Long reinsurerId;

    @ApiModelProperty("分出毛保费")
    private BigDecimal grossPremium;

    @ApiModelProperty("分出手续费")
    private BigDecimal commission;

    @ApiModelProperty("分出净保费")
    private BigDecimal netPremium;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
